package com.jswdwsx.esign.cloud.response

import com.fasterxml.jackson.annotation.JsonIgnore
import java.io.Serializable

data class WebResult<T>(
    var code: String = "0",
    var msg: String? = "",
    var data: T? = null
) : Serializable {

    val isSuccess: Boolean
        @JsonIgnore
        get() = this.code == "0"

    companion object {
        private const val serialVersionUID = 4069665110575916039L
    }
}